<%@ page language="java" pageEncoding="UTF-8"%>  
<%@ taglib prefix = "c" uri="http://java.sun.com/jsp/jstl/core"%>
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>  
<!DOCTYPE html>  
<html>  
<head>  
<base href="<%=basePath%>">  
</head>  
<body>  
 	<h1>用户新增/修改 页面 ,通过pojo来获取提交的参数</h1>
 	 <form action="<%=path%>/saveUser.do" method = "post">
 	 	<h2>用户名称:<input type = "text" name = "username" value = ""></h2>
 	 	<h2>用户性别:<input type = "text" name = "sex" value = ""></h2>
 	 	<h2>用户年龄:<input type = "text" name = "age" value = ""></h2>
 	 	<h2><input type = "submit" value = "保存"></h2>
 	 </form>
 	 
 	 
 	 <h1>用户新增/修改 页面 ,通过包装类来来获取提交的参数</h1>
 	 <form action="<%=path%>/saveUserVo.do" method = "post">
 	 	<h2>用户名称:<input type = "text" name = "user.username" value = ""></h2>
 	 	<h2>用户性别:<input type = "text" name = "user.sex" value = ""></h2>
 	 	<h2>用户年龄:<input type = "text" name = "user.age" value = ""></h2>
 	 	<h2><input type = "submit" value = "保存"></h2>
 	 </form>
 
 </body>   
</html>  